<?php

//

// Save your method calls into an array
$queryArray = array(
    array('method' => 'GET', 'relative_url' => '/me'),
    array('method' => 'GET', 'relative_url' => 'me/friends?limit=50')
);

// http://developers.facebook.com/docs/reference/api/batch/

$user_profile = json_decode($batchResponse[0]['body'], true);
$user_groups = json_decode($batchResponse[1]['body'], true);

$feedQueryUrl = "https://graph.facebook.com/me/feed?"
		. $this->accessToken
		. "&method=post"
		// . "&since=" . $this->getUnixTimeDateFromToday(-$days-1, 0, 0)
		// . "&until=" . $this->getUnixTimeDateFromToday(-$days, 0, 0);
		. "&batch=" . json_encode($queryArray);

$feedQueryResult = file_get_contents($feedQueryUrl);
return json_decode($feedQueryResult, true);


?>
